/**
 * Copyright (c) 2015-2020, Michael Yang 杨福海 (fuhai999@gmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package rpc_service;

import java.lang.annotation.*;

/**
 * 此处配置
 */
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE,ElementType.FIELD})
public @interface MyRPC {

	// 是否开启
	boolean export() default true;
	// 是否现在链接
	boolean isLink() default true;
	
	// 服务协id
	String protocolId() default "motan";
	// 服务协议名
	String protocolName() default "motan";
	// 是否使用缺省值
	boolean protocolDefault() default true;
	
	
	// 注册协议"zookeeper","direct" 
	String registryRegProtocol() default "direct";
	// 注册中心地址
	String registryAddress() default "127.0.0.1:8002";	
	// 是否检查是否注册成功
	String registryCheck() default "true";
	// 是否使用缺省值
	boolean registryDefault() default true;
	
	
	// 标识服务的分组
	String Group() default "motan-rpc";
	// 版本
	String Version() default "1.0";
	// 是否共享channel
	boolean IsShareChannel() default true;
	// 请求超时时间(毫秒)
	int RequestTimeout() default 1000;
	
	// 标识服务的暴露方式,格式为“protocolId:port”（使用的协议及对外提供的端口号），其中protocolId：应与motan:protocol中的id一致
	String Export() default "motan:8002";
	
	
}